﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLayer;
using BusinessObject;

namespace RestHouseReservation
{
    public partial class ConfirmCancelation : System.Web.UI.Page
    {
        public string RoomNo = "";
        ReservationLogic Logic = new ReservationLogic();
        public ReservationDao Reservation = new ReservationDao();
        protected void Page_Load(object sender, EventArgs e)
        {
            RoomNo = Session["RoomNo"].ToString();
            Reservation = Logic.Obj_Cancell_Reservation(RoomNo);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Logic.ConfirmCancelation(RoomNo);
            Server.Transfer("AdminPage.aspx");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Server.Transfer("CancelReservation.aspx");
        }
    }
}